<?	header("Content-Type: application/xml; charset=ISO-8859-1"); ?>
<?print('<?xml version="1.0" encoding="UTF-8"?>');?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

    <url>
        <loc>http://www.softsaurus.org/news</loc>
        <lastmod><?php print(date('Y-m-d\TH:i:sP')); ?></lastmod>
        <priority>1.00</priority>
        <changefreq>daily</changefreq>
    </url>
    <url>
        <loc>http://www.softsaurus.org/page/5/about-us</loc>
        <priority>0.80</priority>
        <changefreq>daily</changefreq>
    </url>
    <url>
        <loc>http://www.softsaurus.org/page/500/contribute</loc>
        <priority>0.80</priority>
        <changefreq>daily</changefreq>
    </url>
    <url>
        <loc>http://www.softsaurus.org/page/501/GPL</loc>
        <priority>0.80</priority>
        <changefreq>daily</changefreq>
    </url>
    <url>
        <loc>http://www.softsaurus.org/page/502/changelog</loc>
        <priority>0.80</priority>
        <changefreq>daily</changefreq>
    </url>
    <url>
        <loc>http://www.softsaurus.org/page/login/existing/user</loc>
        <priority>0.80</priority>
        <changefreq>daily</changefreq>
    </url>
    <url>
        <loc>http://www.softsaurus.org/page/signup/new/user</loc>
        <priority>0.80</priority>
        <changefreq>daily</changefreq>
    </url>

    <?
    include($_SERVER['DOCUMENT_ROOT'].'/config.php');
    include($classes_path.'/class.sitemapGen.php');
    $siteMap = new siteMapCreator();
    $mapItem = $siteMap->get_mapItems();

    foreach($mapItem as $item) {
        print('<url>'.PHP_EOL);
        print('<loc>http://softsaurus.org/page/2/news/article/'.$item['id'].'/'.htmlentities(strtolower(str_replace( " ", "-", $item['title']))).'</loc>'.PHP_EOL);
        print('<lastmod>'.date('Y-m-d\TH:i:sP',strtotime($item['time'])).'</lastmod>');
        print('<changefreq>daily</changefreq>'.PHP_EOL);
        print('</url>'.PHP_EOL);
    }
    ?>
</urlset>

